package com.dz.customer.domain.repository;

import com.dz.customer.domain.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User,Long>, QuerydslPredicateExecutor<User> {
    User findByIdAndDeleteFlag(Long id,Integer deleteFlag);
    User findByPhoneAndDeleteFlag(String phone,Integer deleteFlag);
}
